﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Event - Event Helpers</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("div").mousemove(function(e) {
                var pageCoords = "( " + e.pageX + ", " + e.pageY + " )";
                var clientCoords = "( " + e.clientX + ", " + e.clientY + " )";
                $("span:first").text("( e.pageX, e.pageY ) - " + pageCoords);
                $("span:last").text("( e.clientX, e.clientY ) - " + clientCoords);
            }); 
        });  
    </script>
    <style type="text/css">
        div
        {
            width:100%;
            height:300px;
            border:dashed 1px #000;
            cursor:pointer;
        }
    </style>
</head>
<body>
    <p>    
    Try scrolling too. 
    <span>Move the mouse over the div.</span> 
    <span>&nbsp;</span> 
    </p> 

    <div></div>
</body>
</html>
